home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / QD3D Juggler / Juggler Sources / CQ3BoxesPane.h < prev    next >
Encoding:
Text File  |  1995-12-27  |  932 b   |  40 lines  |  [TEXT/CWIE]

  1. //
  2. //    CQ3BoxesPane.h
  3. //
  4. //    class CQ3BoxesPane
  5. //    A Pane for rendering 4 boxes in a QuickDraw 3D view.
  6. //    Borrowed heavily from the "START HERE" sample code from Apple.
  7. //
  8. //    by James Jennings
  9. //    November 22, 1995
  10. //
  11.  
  12. #pragma once
  13.  
  14. #include "CQD3DPane.h"
  15.  
  16. class CQ3BoxesPane : public CQD3DPane, LPeriodical {
  17. public:
  18.     enum { class_ID = '4Box' };
  19.     static CQ3BoxesPane*    CreateQ3BoxesPaneStream(LStream *inStream);
  20.     
  21.                     CQ3BoxesPane();
  22.                     CQ3BoxesPane(const CQ3BoxesPane &inOriginal);        
  23.                     CQ3BoxesPane(LStream *inStream);
  24.     virtual            ~CQ3BoxesPane();
  25.     virtual void    FinishCreateSelf();
  26. protected:
  27.     // Override to build a custom view.
  28.     virtual void    MakeCamera();
  29.     virtual void    MakeLightGroup();
  30.     
  31.     virtual void    MakeModel();
  32. protected:
  33.     virtual TQ3Status    SubmitScene();
  34. public:
  35.     // LPeriodical methods
  36.     virtual    void    SpendTime( const EventRecord &inMacEvent);
  37. protected:
  38.     TQ3Matrix4x4    mRotation;                // the transform for the model    
  39. };
  40.